﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

using CefSharp;
using CefSharp.WinForms;

namespace Edu.ZJ
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            InitCef();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }

        static void InitCef()
        {
            var setteing = new CefSettings();
            //setteing.CefCommandLineArgs.Add("diable-gpu", "1");
            //setteing.CefCommandLineArgs.Add("no-proxy-server", "1");

            Cef.Initialize(setteing, true, browserProcessHandler: null);
            //Cef.EnableHighDPISupport();

            Czar.HtmlToPdfImage.WkhtmltoxConfig.Setup(AppDomain.CurrentDomain.BaseDirectory);
        }
    }
}
